package com.janj.service;

import com.janj.bean.Student;
import com.janj.dao.StudentOnPhoneMapper;
import com.janj.util.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class StudentOnPhoneServiceImpl  implements StudentOnPhoneService{


    @Override
    public List<Student> selectStudentOnPhone() {
        SqlSession session = MyBatisUtils.getSqlSession();

        StudentOnPhoneMapper mapper = session.getMapper(StudentOnPhoneMapper.class);

        List<Student> array = mapper.selectStudentOnPhone();

         MyBatisUtils.close();
        return array;
    }
}
